// world/CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
project(world_module)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 查找必要的依赖
find_package(Boost REQUIRED COMPONENTS system thread)

# 包含头文件目录
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${Boost_INCLUDE_DIRS})

# 源文件列表
set(SOURCE_FILES
    world_manager.cpp
    scene.cpp
    entity.cpp
    spatial_partition.cpp
)

# 头文件列表
set(HEADER_FILES
    world_manager.h
    scene.h
    entity.h
    spatial_partition.h
)

# 创建库
add_library(world ${SOURCE_FILES} ${HEADER_FILES})

# 链接依赖
target_link_libraries(world ${Boost_LIBRARIES})